package com.android.billingclient.api;

import c.a.a.a.a;
import java.util.concurrent.Future;

final class t0 implements Runnable {

    /* renamed from: b  reason: collision with root package name */
    private final /* synthetic */ Future f2118b;

    /* renamed from: c  reason: collision with root package name */
    private final /* synthetic */ Runnable f2119c;

    t0(d dVar, Future future, Runnable runnable) {
        this.f2118b = future;
        this.f2119c = runnable;
    }

    public final void run() {
        if (!this.f2118b.isDone() && !this.f2118b.isCancelled()) {
            this.f2118b.cancel(true);
            a.k("BillingClient", "Async task is taking too long, cancel it!");
            Runnable runnable = this.f2119c;
            if (runnable != null) {
                runnable.run();
            }
        }
    }
}
